package org.cjlm.ui.pub;

import lombok.Data;

import javax.swing.*;

@Data
public class MButton extends JButton {
    private String code;
    private String name;
    private Integer type;
    private boolean isedit;

    public MButton(String code, String name) {
        super(name);
        this.code = code;
        this.name = name;
    }

    public MButton(String code, String name, Integer type) {
        super(name);
        this.code = code;
        this.name = name;
        this.type = type;
    }

    public MButton(String code, String name, Integer type, boolean isedit) {
        super(name);
        this.code = code;
        this.name = name;
        this.type = type;
        this.isedit = isedit;
    }
}
